import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/ProductsVideo',
      name: 'ProductsVideo',
      component: () => import('../pages/productVideo/ProductsVideo.vue')
    },
    {
      path: '/VideoPage/:id',
      name: 'VideoPage',
      component: () => import('../pages/productVideo/components/VideoPage.vue')
    },
    {
      path: '/ProductDisplay',
      name: 'ProductDisplay',
      component: () => import('../pages/productDisplay/ProductDisplay.vue')
    },
    {
      path: '/ProductDetails/:id',
      name: 'ProductDetails',
      component: () => import('../pages/productDisplay/ProductDetails.vue')
    },
    {
      path: '/SafetyPromotion',
      name: 'SafetyPromotion',
      component: () => import('../pages/safetyPromotion/SafetyPromotion.vue')
    },
    {
      path: '/SafetyPromotionDetails/:id',
      name: 'SafetyPromotionDetails',
      component: () => import('../pages/safetyPromotion/SafetyPromotionDetails.vue')
    },
    {
      path: '/Form',
      name: 'Form',
      component: () => import('../pages/formData/Form.vue')
    },
    {
      path: '/NewsDetails',
      name: 'NewsDetails',
      component: () => import('../pages/newsDetails/NewsDetails.vue')
    },
    {
      path: '/NewsDetailsPage/:id',
      name: 'NewsDetailsPage',
      component: () => import('../pages/newsDetails/NewsDetailsPage.vue')
    },
    {
      path: '/Application',
      name: 'Application',
      component: () => import('../pages/application/Application.vue')
    },
    {
      path: '/Contact',
      name: 'Contact',
      component: () => import('../pages/contact/Contact.vue')
    },
    {
      path: '/CompanyIntroduction',
      name: 'CompanyIntroduction',
      component: () => import('../pages/companyIntroduction/CompanyIntroduction.vue')
    }
  ]
})
